<template>
  <div>{{ name }}{{ a }}</div>
  <input :value="a + name" />
</template>

<script setup lang="ts">
import { reactive, ref } from 'vue'

//const test = defineProps(['name', 'a'])  //数组写法

//完全写法
const test = defineProps({
  name: String,
  a: {
    type: String,
    default: '9'
  }
})

console.log(test)
</script>

<style scoped></style>
